# coding=utf-8

import requests

def _get_city_code(city):
    url = 'https://js.51jobcdn.com/in/js/2016/layer/area_array_c.js';
    req = requests.get(url).text;
    a = req.find(city);
    return req[a - 9:a - 3];


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print(_get_city_code("厦门"))

# See PyCharm help at https://www.jetbrains.com/help/pycharm/
